/***API***/
import * as baseAPI from "@/api";
const request = baseAPI.request;

//物品管理查询接口
const API = {
  getList: obj => {
    let requestData = {
      method: "post",
      url: "YWDevIns/YWDITGetTasKsAllot2",
      data: obj
    };
    return request(requestData);
  },

  //物品管理编辑接口
  editSubmit: obj => {
    let requestData = {
      method: "post",
      url: "/YWCK/ywCKEditItem2",
      data: obj
    };
    return request(requestData);
  },

  //物品管理列表删除接口
  delete: obj => {
    let requestData = {
      method: "post",
      url: "YWCK/ywCKDelItem2",
      params: obj
    };
    return request(requestData);
  },

  //物品管理增加接口
  addSubmit: obj => {
    let requestData = {
      method: "post",
      url: "YWCK/ywCKAddItem2",
      data: obj
    };
    return request(requestData);
  },

  //分类编码选择接口
  getCateNameList: obj => {
    let requestData = {
      method: "post",
      url: "YWCK/ywCKGetItemCate2",
      data: obj
    };
    return request(requestData);
  }
};

export default API;
